<template>
  <div class="orderForm">
    <el-table v-loading="pageLoading" :data="pageVO.list" border fit highlight-current-row style="width: 100%">
      <el-table-column prop="amount" label="提现金额" width="180">
      </el-table-column>
      <el-table-column prop="payMode" label="提现方式" width="180">
      </el-table-column>
      <el-table-column prop="createTime" label="创建时间"> </el-table-column>
      <el-table-column prop="status" label="状态"> </el-table-column>
    </el-table>
    <!-- 分页条 -->
    <pagination
      v-show="pageVO.total > 0"
      :total="pageVO.total"
      :page.sync="pageQuery.pageNum"
      :limit.sync="pageQuery.pageSize"
      @pagination="getPage()"
    />
  </div>
</template>
  
  <script>
import * as api from "@/api/investor/index";
import Pagination from "@/components/Pagination";

export default {
  components: { Pagination },
  data() {
    return {
      pageLoading: false,
      pageQuery: {
        pageSize: 10,
        pageNum: 1,
        source:'提现',
        barCounterInvestorId:null,
      },
      // 返回参数
      pageVO: {
        list: [], // 返回的列表
        total: 0, // 一共多少条数据
        pages: 0, // 一共多少页
      },
    };
  },
  mounted() {
    this.pageQuery.barCounterInvestorId=this.$route.query.barCounterInvestorId
    this.apiButa()
  },
  methods: {
    apiButa(){
      this.pageLoading = true
      api.batxsaves(this.pageQuery).then(pageVO=>{
        this.pageVO = pageVO;
        this.pageLoading = false;
      })
    }
  },
};
</script>
<style lang="scss" scoped>
::v-deep .red-header .el-table__header th {
  background-color: rgb(242, 243, 245);
  color: #000; 
}
</style>